package com.fyzk.activity.lottery.jc.football.newJz.data;

import android.os.Bundle;
import android.view.View;

import com.fyzk.net.Commands;

import org.json.JSONException;
import org.json.JSONObject;

import http.Common.CommandUtil;
import com.wf.domain.UrlDef;

/**
 * Created by fanxs11 on 17/9/19.
 * <p>
 * 比分直播详情
 */
public class BasketballScoreDetailActivity extends ScoreDetailActivity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        rb2.setVisibility(View.GONE);
        rb4.setVisibility(View.GONE);   // 压盘数据没有
    }

    @Override
    protected boolean isShowRanking() {
        return false;
    }

    @Override
    protected boolean isShowQuery() {
        return false;
    }

    @Override
    protected void queryFootballAsiaData() {
        // 蓝球没有压盘数据， 不需要获取
    }

    /* 查询比赛信息请求 */
    @Override
    protected void queryGameInfoRequest() {
        try {
            JSONObject request = new JSONObject();
            request.put("matchNum", matchNum);
            httpPostJson(CommandUtil.FOOTBALLANALYZE, Commands.BASKETBALLANALYZE, request, false, UrlDef.TY_URL_NEW_DATA2);
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

    @Override
    protected String getTopTitle() {
        return "竞篮分析";
    }

    /**
     * 欧亚析 足球欧赔数据
     */
    @Override
    protected void queryFootballEuropeData() {
        try {
            JSONObject request = new JSONObject();
            request.put("matchNum", matchNum);
            httpPostJson(CommandUtil.FOOTBALLEUROPEDATA, Commands.BASKETBALLEUROPEDATA, request, false, UrlDef.TY_URL_NEW_DATA2);
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

}
